package com.wenheng.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @Auther: 文恒
 * @Date: 2021/3/31 - 03 - 31 -9:39
 * @Description:com.wenheng.client
 * @version:1.0
 */
@FeignClient("AdminClient")
@Component
public interface AdminClient {
    //查询用户基本信息
    @PostMapping("/admin/info")
     String adminInfo(@RequestParam("token") String token);
    //查询用户地址  （具体）
    @PostMapping("/admin/address")
    String adminAddressInfo(@RequestParam(required = false,value = "address")Integer address);
}
